import request from '@/utils/request'

// 查询图纸变更line列表
export function listChangeLine(query) {
  return request({
    url: '/md/changeLine/list',
    method: 'get',
    params: query
  })
}

// 查询图纸变更line详细
export function getChangeLine(id) {
  return request({
    url: '/md/changeLine/' + id,
    method: 'get'
  })
}

// 新增图纸变更line
export function addChangeLine(data) {
  return request({
    url: '/md/changeLine',
    method: 'post',
    data: data
  })
}

// 修改图纸变更line
export function updateChangeLine(data) {
  return request({
    url: '/md/changeLine',
    method: 'put',
    data: data
  })
}

// 删除图纸变更line
export function delChangeLine(id) {
  return request({
    url: '/md/changeLine/' + id,
    method: 'delete'
  })
}

// 查询图纸变更line删除列表
export function deleteList(query) {
  return request({
    url: '/md/changeLine/deleteList',
    method: 'get',
    params: query
  })
}

// 批量删除图纸变更line
export function deleteBatch(ids) {
  return request({
    url: '/md/changeLine/edit',
    method: 'post',
    data: ids
  })
}

// 移除删除变更
export function returnEdit(row) {
  return request({
    url: '/md/changeLine/returnEdit',
    method: 'post',
    data: row
  })
}

// 查询图纸变更line列表
export function getListChangeLine(query) {
  return request({
    url: '/md/changeLine/getList',
    method: 'get',
    params: query
  });
}

// 查询图纸变更line详细
export function getChangeLineDrawing(id) {
  return request({
    url: '/md/changeLine/drawing/' + id,
    method: 'get'
  });
}
